﻿@model ArivisTests.Models.TestScenario
@using ArivisTests.Views;

@{
    ViewBag.Title = "Details";
}

@section Navigation{
    @Html.ActionLink("Test Scenarios", "Index") &rsaquo; @Html.DisplayFor(model => model.Name)
}

<fieldset>
    <legend>TestScenario</legend>
    <table class="display-table">
        <tr>
            <td class="display-label">
                @Html.DisplayNameFor(model => model.Name)
            </td>
            <td class="display-field">
                @Html.DisplayFor(model => model.Name)
            </td>
        </tr>
        <tr>
            <td class="display-label">
                @Html.DisplayNameFor(model => model.Duration)
            </td>
            <td class="display-field">
                @Html.DisplayFor(model => model.Duration)
            </td>
        </tr>
        <tr>
            <td class="display-label">
                @Html.DisplayNameFor(model => model.Owner)
            </td>
            <td class="display-field">
                @Html.DisplayFor(model => model.Owner.UserName)
            </td>
        </tr>
        <tr>
            <td class="display-label">
                @Html.DisplayNameFor(model => model.Url)
            </td>
            <td class="display-field">
                @Html.DisplayFor(model => model.Url)
            </td>
        </tr>
        <tr>
            <td class="display-label">
                @Html.DisplayNameFor(model => model.TicketUrl)
            </td>
            <td class="display-field">
                @Html.DisplayFor(model => model.TicketUrl)
            </td>
        </tr>
    </table>
    <p>Test Plans using this scenario:<br />@Html.LinkedItems(Model.Plans)</p>

</fieldset>
<p>
    @Html.ActionLink("Edit", "Edit", new { id=Model.Id }) | 
    @Html.ActionLink("Delete", "Delete", new { id=Model.Id })
</p>
